package top.infopub.mgr.mkt.service;

import com.github.pagehelper.Page;
import top.infopub.generic.GenericService;
import top.infopub.mgr.mkt.domain.SaleRewardDomain;
import top.infopub.mgr.mkt.vo.SaleRewardVo;
import top.infopub.model.mkt.SaleReward;
import top.infopub.model.mkt.SaleRewardAtt;

import java.util.List;

//废弃，使用MarketingReward
public interface SaleRewardService extends GenericService<SaleReward, String> {
 
    /**
     * 根据条件查询营销奖励申请分页数据
     * @param saleRewardVo
     * @return 
     * @see
     */
    Page<SaleRewardDomain> selectByDomainWhere(Page<SaleRewardDomain> page,SaleRewardVo saleRewardVo);

    /**
     * 根据条件查询-我审批的营销奖励申请分页数据
     * @param saleRewardVo
     * @return 
     * @see
     */
    Page<SaleRewardDomain> selectMyCheckByDomainWhere(Page<SaleRewardDomain> page,SaleRewardVo saleRewardVo);

    /**
     * 新增
     */
    void saveSaleReward(SaleReward saleReward,List<SaleRewardAtt> saleRewardAtts);

    /**
     * 详情
     */
    SaleRewardVo queryById(String id);
}